@extends('admin.layout.layout', ['row' => @$page])

@section('contain')


    <div class="portlet">
        <div class="portlet-title">
            <div class="caption">
                <x-portlet-breadcrumb :page="$page"></x-portlet-breadcrumb>
            </div>
            <div class="actions"></div>
        </div>

        <div>
            <table class="table table-s2 text-center">
                <thead>
                <tr>
                    <th>{{ ts('sequence') }}</th>
                    <th>{{ ts('rollnumber') }}</th>
                    <th>{{ ts('filmtype') }}</th>
                    <th>{{ ts('ROLLWIDTH') }}</th>
                    <th>{{ ts('changdu') }}</th>
                    <th>{{ ts('status') }}</th>
                </tr>
                </thead>
                <tbody>
                @foreach($data as $k => $v)
                    <tr class="{{ @$v['exist'] ? 'table-warning' : '' }}">
                        <td>{{ $k+1 }}</td>
                        <td>{{ $v['roll_number'] }}</td>
                        <td>{{ ts('film_type_master.'.$v['film_type_id']) }}</td>
                        <td>{{ $v['width'] }}</td>
                        <td>{{ $v['length'] }}</td>
                        <td>{{ @$v['error_info'] ? ts('DRSB') : ts('drcg') }}</td>
                    </tr>
                    @if(@$v['error_info'])
                        <tr class="table-warning">
                            <td colspan="6">{{ @$v['error_info'] }}</td>
                        </tr>
                    @endif
                @endforeach
                </tbody>
            </table>
        </div>
        <div class="my-3 p-3">
            <a href="/admin/rolls/" class="btn btn-primary">{{ ts('CONFIRM') }}</a>
        </div>

    </div>


@endsection